package com.zhenyi.tuangou.core;

import com.jfinal.config.Routes;
import com.zhenyi.tuangou.admin.index.ApiController;
import com.zhenyi.tuangou.admin.index.AuthController;
import com.zhenyi.tuangou.admin.index.TypeController;
//import com.zhenyi.tuangou.admin.index.ProductController;
import com.zhenyi.tuangou.index.AddressController;
import com.zhenyi.tuangou.index.CartController;
import com.zhenyi.tuangou.index.CommunityController;
import com.zhenyi.tuangou.index.GroupProductController;
import com.zhenyi.tuangou.index.HomeController;
import com.zhenyi.tuangou.index.OrderController;
import com.zhenyi.tuangou.index.ProductController;
import com.zhenyi.tuangou.index.ShopControll;
import com.zhenyi.tuangou.index.WechatController;

public class TuangouRoutes extends Routes {

	@Override
	public void config() {
		add("/tg", HomeController.class);
		add("/tg/product", ProductController.class);
		add("/tg/order", OrderController.class);
		add("/tg/address", AddressController.class);
		add("/tg/group", GroupProductController.class);
		add("/tg/shop", ShopControll.class);
		add("/tg/wechat", WechatController.class);
		add("/tg/shoppingCar", CartController.class);
		add("/tg/community", CommunityController.class);
		// add("/tg/message",MessageController.class);
		add("/tg/admin/auth", AuthController.class);
		add("/tg/admin/type", TypeController.class);
		add("/tg/admin/product", com.zhenyi.tuangou.admin.index.ProductController.class);
		add("/tg/admin/order", com.zhenyi.tuangou.admin.index.OrderController.class);
		add("/tg/admin/api", ApiController.class);
	}

}
